package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ImcOrganList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_organ_list", catalog = "imcdbserver")
public class ImcOrganList implements java.io.Serializable {

	// Fields

	private ImcOrganListId id;
	private Integer corpId;

	// Constructors

	/** default constructor */
	public ImcOrganList() {
	}

	/** minimal constructor */
	public ImcOrganList(ImcOrganListId id) {
		this.id = id;
	}

	/** full constructor */
	public ImcOrganList(ImcOrganListId id, Integer corpId) {
		this.id = id;
		this.corpId = corpId;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "organId", column = @Column(name = "organ_id", nullable = false)) })
	public ImcOrganListId getId() {
		return this.id;
	}

	public void setId(ImcOrganListId id) {
		this.id = id;
	}

	@Column(name = "corp_id")
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

}